package com.gopay.commons.validator.form;

/**
 * 验证项参数
 * 
 * @Validator.java
 * @author yaobo
 * @2012-12-26 上午09:57:28 www.gopay.com.cn Inc.All rights reserved.
 */
public class Validator {
    /**
     * 是否必选
     */
    private boolean requried;

    /**
     * 最小长度
     */
    private String minLength;
    /**
     * 最大长度
     */
    private String maxLength;

    /**
     * 正则表达式
     */
    private String pattern;

    /**
     * 比较值
     */
    private String compareTo;
    /**
     * 作为默认的验证类
     */
    private String type;
    /**
     * 比较值
     */
    private String value;

    /**
     * 最小值
     */
    private String minValue;
    /**
     * 最大值
     */
    private String maxValue;

    /**
     * 输出信息
     */
    private String message;

    public boolean isRequried() {
        return requried;
    }

    public void setRequried(boolean requried) {
        this.requried = requried;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getCompareTo() {
        return compareTo;
    }

    public void setCompareTo(String compareTo) {
        this.compareTo = compareTo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMinLength() {
        return minLength;
    }

    public void setMinLength(String minLength) {
        this.minLength = minLength;
    }

    public String getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(String maxLength) {
        this.maxLength = maxLength;
    }

    public String getMinValue() {
        return minValue;
    }

    public void setMinValue(String minValue) {
        this.minValue = minValue;
    }

    public String getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(String maxValue) {
        this.maxValue = maxValue;
    }
}
